class Admin::AdminController < ApplicationController
  before_filter :init

  layout "admin"

  add_crumb "Administrační rozhraní", :admin_path
  
  def index
  end

  protected
  def info_for_paper_trail
    if logged_in?
      {:whodunnit => current_user.user_info.whole_name}
    end
  end
  
  def init
    permission_denied unless permitted_to? :read, :admin_admin
  end
end
